import { http } from "@/utils/http/axios";
// 根据类型查询参数
export function getListByType(type: string) {
	return http.request(
		{
			url: `system/config/list/${type}`,
			method: "get"
		},
		{
			isTransformResponse: true
		}
	);
}
// 更新
export function updateConfigByType(type: string, params: any) {
	return http.request({
		url: `system/config/${type}`,
		method: "PUT",
		data: params
	});
}
